package com.team1.system.blockchain.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Transaction {

    /** id */
    private int id;

    /** 借书信息id */
    private String borrowId;

    /** 用户id */
    private Long userId;

    /** 图书id */
    private Long bookId;

    /** 借书管理员id */
    private Long borrowAdminid;

    /** 借书时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date borrowTime;

    /** 还书管理员id */
    private Long returnAdminid;

    /** 还书时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date returnTime;

    /** 信用度信息id */
    private String creditId;

    /** 信用度偏移量 */
    private String creditOffset;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public String getBorrowId() {
        return borrowId;
    }

    public void setBorrowId(String borrowId) {
        this.borrowId = borrowId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public Long getBorrowAdminid() {
        return borrowAdminid;
    }

    public void setBorrowAdminid(Long borrowAdminid) {
        this.borrowAdminid = borrowAdminid;
    }

    public Date getBorrowTime() {
        return borrowTime;
    }

    public void setBorrowTime(Date borrowTime) {
        this.borrowTime = borrowTime;
    }

    public Long getReturnAdminid() {
        return returnAdminid;
    }

    public void setReturnAdminid(Long returnAdminid) {
        this.returnAdminid = returnAdminid;
    }

    public Date getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(Date returnTime) {
        this.returnTime = returnTime;
    }

    public String getCreditId() {
        return creditId;
    }

    public void setCreditId(String creditId) {
        this.creditId = creditId;
    }

    public String getCreditOffset() {
        return creditOffset;
    }

    public void setCreditOffset(String creditOffset) {
        this.creditOffset = creditOffset;
    }
}
